Skip to content

Commit

Permalink
renamed function to handleClearFailedTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestarrdev committed Jun 29, 2023
1 parent 2cca0dc commit bfdf80d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/TransactionsTab/helpers/clearLocalStorage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const clearLocalStorage = (address: string) => {
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
if (key?.includes(`airswap/transactions/${address}`)) {
localStorage.removeItem(key)
}
}
}

0 comments on commit bfdf80d

Please sign in to comment.