mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +00:00
Clear transaction data on transaction resign (#788)
This commit is contained in:
parent
418b186642
commit
db4dc516e2
@ -14,8 +14,8 @@ const INITIAL_STATE: State = {
|
||||
pending: false
|
||||
};
|
||||
|
||||
const signLocalTransactionRequested = (state: State): State => ({
|
||||
...state,
|
||||
const signLocalTransactionRequested = (): State => ({
|
||||
...INITIAL_STATE,
|
||||
pending: true
|
||||
});
|
||||
|
||||
@ -48,7 +48,7 @@ const reset = () => INITIAL_STATE;
|
||||
export const sign = (state: State = INITIAL_STATE, action: SignAction | ResetAction) => {
|
||||
switch (action.type) {
|
||||
case TK.SIGN_LOCAL_TRANSACTION_REQUESTED:
|
||||
return signLocalTransactionRequested(state);
|
||||
return signLocalTransactionRequested();
|
||||
case TK.SIGN_LOCAL_TRANSACTION_SUCCEEDED:
|
||||
return signLocalTransactionSucceeded(state, action);
|
||||
case TK.SIGN_WEB3_TRANSACTION_SUCCEEDED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user