Skip to content

Commit

Permalink
chore: add success feedback when resetting the wallet (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Sep 15, 2024
1 parent ff39a99 commit e555035
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-bees-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

chore: add success feedback when resetting the wallet
4 changes: 4 additions & 0 deletions packages/app/src/systems/Core/services/core.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { toast } from '@fuel-ui/react';
import { VaultService } from '~/systems/Vault';
import { delay } from '../utils';
import { db } from '../utils/database';
import { Storage } from '../utils/storage';

// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
export class CoreService {
static async clear() {
toast.success('Your wallet will be resetted');
await delay(1500);
await VaultService.clear();
await db.clear();
await Storage.clear();
Expand Down

0 comments on commit e555035

Please sign in to comment.