Skip to content

Commit

Permalink
style: linted
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 5, 2024
1 parent d38608a commit ddb93e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/routes/[network]/(account)/ram/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
let options = $derived(
tabOptions.map((option) => ({
...option,
active: $page.url.pathname.replace(/^\/[^\/]+/, '') === option.href
active: $page.url.pathname.replace(/^\/[^/]+/, '') === option.href
}))
);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[network]/(account)/ram/buy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { getContext } from 'svelte';
import { Checksum256, Asset } from '@wharfkit/antelope';
import { Checksum256 } from '@wharfkit/antelope';
import { getSetting } from '$lib/state/settings.svelte.js';
import type { UnicoveContext } from '$lib/state/client.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[network]/(account)/ram/sell/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { getContext } from 'svelte';
import { Checksum256, Asset } from '@wharfkit/antelope';
import { Checksum256 } from '@wharfkit/antelope';
import { getSetting } from '$lib/state/settings.svelte.js';
import type { UnicoveContext } from '$lib/state/client.svelte';
Expand Down
4 changes: 2 additions & 2 deletions src/routes/[network]/(account)/ram/sell/state.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class SellRAMState {

public insufficientRAMForSale: boolean = $derived(
this.format === 'bytes'
? this.bytes !== undefined && this.bytes / 1000 > this.max.value
: this.bytesValue.value > this.max.value * this.pricePerKB.value
? !!(this.bytes !== undefined && this.bytes > this.max)
: !!(this.bytesToSell || 0 > this.max)
);

public insufficientRAM: boolean = $derived(!!this.max && this.insufficientRAMForSale);
Expand Down

0 comments on commit ddb93e3

Please sign in to comment.