Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jordankzf committed Jul 26, 2023
1 parent 1fbd3c1 commit f82d9d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/sado-connect/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ type Unisat = {
satoshis: number,
options: { feeRate: number }
) => Promise<string>;
getBalance: () => Promise<{confirmed: number, total: number, unconfirmed: number}>;
getBalance: () => Promise<{
confirmed: number;
total: number;
unconfirmed: number;
}>;
};

declare interface Window {
Expand Down
8 changes: 7 additions & 1 deletion packages/sado-connect/src/utils/promise-with-timeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ export function promiseWithTimeout(promise, ms, message) {
}

export function unresponsiveExtensionHandler(promise, wallet) {
return promiseWithTimeout(promise, 5000, `No response from ${capitalizeFirstLetter(wallet)}. If you don't see a pop-up, you may need to reload your browser.`)
return promiseWithTimeout(
promise,
5000,
`No response from ${capitalizeFirstLetter(
wallet
)}. If you don't see a pop-up, you may need to reload your browser.`
);
}
2 changes: 1 addition & 1 deletion packages/sado-connect/src/utils/text-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export function TruncateMiddle(

export function capitalizeFirstLetter(str: string): string {
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
}
}

0 comments on commit f82d9d9

Please sign in to comment.