Skip to content

Commit 2bd6c4d

Browse files
authored
Merge pull request #157 from oasisprotocol/lw/fix-toast
Sonner's toast.loading ignores duration
2 parents 5ec7949 + fce4605 commit 2bd6c4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backend/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export function useCreateAndDeployApp() {
394394
await waitForAppScheduler(appId, network)
395395
console.log('deployed', appId)
396396

397-
toast.loading('App is starting (~5min)', { duration: 5 * 60 * 1000 })
397+
toast('App is starting (~5min)', { duration: 5 * 60 * 1000 })
398398
return appId
399399
},
400400
})
@@ -473,7 +473,7 @@ export function useUpdateApp() {
473473
const hash = await restartMachine({ machineId: machine.id, provider: machine.provider, network })
474474
await waitForTransactionReceipt(wagmiConfig, { hash })
475475
}
476-
toast.loading('App is restarting (~1min)', { duration: 1 * 60 * 1000 })
476+
toast('App is restarting (~1min)', { duration: 1 * 60 * 1000 })
477477
}
478478
return appId
479479
},

src/pages/Dashboard/MachinesDetails/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const MachinesDetails: FC = () => {
8686
provider: machine.provider,
8787
network,
8888
})
89-
toast.loading('Machine is restarting (~1min)', { duration: 1 * 60 * 1000 })
89+
toast('Machine is restarting (~1min)', { duration: 1 * 60 * 1000 })
9090
}}
9191
/>
9292
<TabsList className="w-full md:w-auto">

0 commit comments

Comments
 (0)