Skip to content

Commit

Permalink
SAY-03 : Duplicate Operations Are Not Saved
Browse files Browse the repository at this point in the history
remove conditional if
  • Loading branch information
modship committed Oct 31, 2024
1 parent 7f4259e commit 56137b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/snap/src/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ export async function addAccountOperation(address: string, operation: string) {
const accountsOperations: AccountsOperations =
(await StateManager.getState('accountOperations')) || {};
const operations = accountsOperations[address] || [];

if (operations.find((t) => t === operation)) {
return;
}
operations.push(operation);
accountsOperations[address] = operations;
await StateManager.setState('accountOperations', accountsOperations);
Expand Down

0 comments on commit 56137b6

Please sign in to comment.