Skip to content

Commit

Permalink
Merge branch 'main' into feat/progress-hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Feb 7, 2025
2 parents 8626adf + 5503b8f commit 0f388d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/lib/services/topup.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export const topUp = async ({
canisterId: Principal;
onProgress: (progress: TopUpProgress | undefined) => void;
}): Promise<{ success: 'ok' | 'error'; err?: unknown }> => {
assertNonNullish(identity, get(i18n).core.not_logged_in);

if (isNullish(missionControlId)) {
toasts.error({
text: get(i18n).errors.no_mission_control
Expand All @@ -58,6 +56,8 @@ export const topUp = async ({
}

try {
assertNonNullish(identity, get(i18n).core.not_logged_in);

const topUp = async () =>
await topUpApi({
canisterId,
Expand Down
6 changes: 3 additions & 3 deletions src/frontend/src/lib/services/user.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ interface OpenUserDetailParams {
}

export const openUserDetail = async ({ user, satelliteId, identity }: OpenUserDetailParams) => {
assertNonNullish(identity, get(i18n).core.not_logged_in);
try {
assertNonNullish(identity, get(i18n).core.not_logged_in);

busy.start();
busy.start();

try {
const waitLoadUserUsages = (): Promise<UserUsageCollection[]> =>
// eslint-disable-next-line no-async-promise-executor, require-await
new Promise<UserUsageCollection[]>(async (resolve, reject) => {
Expand Down

0 comments on commit 0f388d1

Please sign in to comment.