Skip to content

Commit

Permalink
refactor: cleanup Error (#7179)
Browse files Browse the repository at this point in the history
* refactor: cleanup error

* fix: bring back check

---------

Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
  • Loading branch information
evavirseda and begonaalvarezd authored Aug 1, 2023
1 parent 7093159 commit 743739a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/shared/components/Error.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { Text, TextType } from 'shared/components'
export let error = ''
import { Text } from 'shared/components'
export let error: string | null
</script>

{#if error !== null}
<div class="inline-block w-full h-full mt-1">
<Text type={TextType.p} classes="inline-block" error>{error}</Text>
<Text classes="inline-block" error>{error}</Text>
</div>
{/if}
2 changes: 1 addition & 1 deletion packages/shared/components/NodeConfigurationForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
export let networkId: NetworkId | undefined = undefined
export let coinType: string = ''
export let isBusy: boolean = false
export let formError: string | undefined = undefined
export let formError: string | null = null
export let currentClientOptions: IClientOptions | undefined = undefined
export let isDeveloperProfile: boolean = false
export let onSubmit: () => void = () => {}
Expand Down

0 comments on commit 743739a

Please sign in to comment.