Skip to content

Commit

Permalink
remove isfunction (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi authored Feb 16, 2024
1 parent b7a2e19 commit d30ebb0
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Alert } from '@bloomwalletio/ui'
import { localize } from '@core/i18n'
import { LedgerAppName, LedgerConnectionState, ledgerConnectionState } from '@core/ledger'
import { isFunction } from '@core/utils'
import { closePopup } from '@desktop/auxiliary/popup'
import { LedgerStatusIllustration, LedgerIllustrationVariant } from '@ui'
import PopupTemplate from '../PopupTemplate.svelte'
Expand Down Expand Up @@ -53,12 +52,8 @@
}
function continueFlow(): void {
if (isFunction(onContinue)) {
closePopup()
onContinue()
} else {
closePopup()
}
closePopup()
onContinue?.()
}
function onCancelClick(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Alert } from '@bloomwalletio/ui'
import { localize } from '@core/i18n'
import { LedgerAppName, LedgerConnectionState, ledgerConnectionState } from '@core/ledger'
import { isFunction } from '@core/utils'
import { closeProfileAuthPopup } from '@desktop/auxiliary/popup'
import { LedgerStatusIllustration, LedgerIllustrationVariant } from '@ui'
import PopupTemplate from '../PopupTemplate.svelte'
Expand Down Expand Up @@ -53,12 +52,8 @@
}
function continueFlow(): void {
if (isFunction(onContinue)) {
closeProfileAuthPopup()
onContinue()
} else {
closeProfileAuthPopup()
}
closeProfileAuthPopup()
onContinue?.()
}
function onCancelClick(): void {
Expand Down
3 changes: 0 additions & 3 deletions packages/shared/src/lib/core/utils/function.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/shared/src/lib/core/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export * from './dom'
export * from './encode'
export * from './filter'
export * from './format'
export * from './function'
export * from './iter'
export * from './math'
export * from './number'
Expand Down
17 changes: 0 additions & 17 deletions packages/shared/src/lib/core/utils/tests/function.test.ts

This file was deleted.

0 comments on commit d30ebb0

Please sign in to comment.