Skip to content

Commit

Permalink
Merge pull request #565 from arconnectio/staging
Browse files Browse the repository at this point in the history
ArConnect 1.20.5
  • Loading branch information
nicholaswma authored Dec 4, 2024
2 parents 96d019a + 297f1d7 commit 6e04693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,15 @@ export default function Popup() {
</Route>
</Switch>
<Route path="/quick-settings/contacts" component={Contacts} />
<Switch>
<Route path="/quick-settings/contacts/new" component={NewContact} />
<Route path="/quick-settings/contacts/:address">
{(params: { address: string }) => (
<ContactSettings address={params?.address} />
)}
</Route>
</Switch>
<Route path="/quick-settings/contacts/:address">
{(params: { address: string }) =>
params.address.startsWith("new") ? (
<NewContact />
) : (
<ContactSettings address={params.address} />
)
}
</Route>
<Route
path="/quick-settings/notifications"
component={NotificationSettings}
Expand Down
7 changes: 7 additions & 0 deletions src/wallets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ export function useSetUp() {
case undefined:
case "extension": {
if (!hasWallets) {
const allStoredKeys = Object.keys(
(await browser.storage.local.get(null)) || {}
);
await Promise.all(
allStoredKeys.map((key) => ExtensionStorage.remove(key))
);

await browser.tabs.create({
url: browser.runtime.getURL("tabs/welcome.html")
});
Expand Down

0 comments on commit 6e04693

Please sign in to comment.