From 915d1de1b0ba8d77950effc22185ef65238972a7 Mon Sep 17 00:00:00 2001
From: Aaron Cox
Date: Fri, 27 Dec 2024 11:39:35 -0800
Subject: [PATCH] Linting
---
messages/ko.json | 2 +-
src/routes/[network]/(account)/ram/(forms)/buy/+page.ts | 6 +++---
src/routes/[network]/(account)/ram/(forms)/sell/+page.ts | 6 +++---
src/routes/[network]/(account)/ram/+layout.ts | 4 ++--
src/routes/[network]/(explorer)/account/[name]/+page.svelte | 4 ++--
src/routes/[network]/(homepage)/components/charts.svelte | 6 +++---
.../[network]/(homepage)/components/staking-rewards.svelte | 2 +-
7 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/messages/ko.json b/messages/ko.json
index b789a8a5a..ea2175615 100644
--- a/messages/ko.json
+++ b/messages/ko.json
@@ -255,7 +255,7 @@
"metamask_install_faq_a9_p2": "{network} 지갑에 대한 향후 업데이트에서는 소유자 키를 사용하여 활성 키를 재설정하는 방법을 제공하여 활성 키가 변경된 경우 복구 경로를 제공할 예정입니다.",
"metamask_install_faq_q1": "MetaMask 스냅이란 무엇인가요?",
"metamask_install_faq_q10": "소유자 키와 활성 키를 어떻게 찾을 수 있나요?",
- "metamask_install_faq_q11": "MetaMask용 { {network} 지갑을 사용하여 모든 {network} } 앱에 액세스할 수 있나요?",
+ "metamask_install_faq_q11": "MetaMask용 {network} 지갑을 사용하여 모든 {network} 앱에 액세스할 수 있나요?",
"metamask_install_faq_q12": "{network} Wallet 지원은 어떻게 받을 수 있나요?",
"metamask_install_faq_q2": "{network} 지갑을 어떻게 설치하나요?",
"metamask_install_faq_q3": "{network} 지갑은 무슨 역할을 하나요?",
diff --git a/src/routes/[network]/(account)/ram/(forms)/buy/+page.ts b/src/routes/[network]/(account)/ram/(forms)/buy/+page.ts
index 4c478390e..7414372b7 100644
--- a/src/routes/[network]/(account)/ram/(forms)/buy/+page.ts
+++ b/src/routes/[network]/(account)/ram/(forms)/buy/+page.ts
@@ -8,19 +8,19 @@ export const load: PageLoad = async ({ params, parent }) => {
backPath: `/${languageTag()}/${params.network}/ram`,
title: m.common_unit_buy({ unit: 'RAM' }),
subtitle: m.ram_page_subtitle({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
}),
pageMetaTags: {
title: [
m.common_unit_buy({ unit: 'RAM' }),
m.ram_metadata_buy_title({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
].join(' | '),
description: m.ram_metadata_buy_description({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
}
diff --git a/src/routes/[network]/(account)/ram/(forms)/sell/+page.ts b/src/routes/[network]/(account)/ram/(forms)/sell/+page.ts
index 48c499676..b745442d5 100644
--- a/src/routes/[network]/(account)/ram/(forms)/sell/+page.ts
+++ b/src/routes/[network]/(account)/ram/(forms)/sell/+page.ts
@@ -8,19 +8,19 @@ export const load: PageLoad = async ({ params, parent }) => {
backPath: `/${languageTag()}/${params.network}/ram`,
title: m.common_unit_sell({ unit: 'RAM' }),
subtitle: m.ram_page_sell_subtitle({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
}),
pageMetaTags: {
title: [
m.common_unit_sell({ unit: 'RAM' }),
m.ram_metadata_buy_title({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
].join(' | '),
description: m.ram_metadata_sell_description({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
}
diff --git a/src/routes/[network]/(account)/ram/+layout.ts b/src/routes/[network]/(account)/ram/+layout.ts
index 398571ab3..3b3542470 100644
--- a/src/routes/[network]/(account)/ram/+layout.ts
+++ b/src/routes/[network]/(account)/ram/+layout.ts
@@ -9,12 +9,12 @@ export const load: LayoutLoad = async ({ parent }) => {
pageMetaTags: {
title: [
m.ram_metadata_buy_title({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
].join(' | '),
description: m.ram_metadata_overview_description({
- token: network.chain.systemToken?.symbol.name || m.common_tokens(),
+ token: String(network.chain.systemToken?.symbol.name || m.common_tokens()),
network: network.chain.name
})
}
diff --git a/src/routes/[network]/(explorer)/account/[name]/+page.svelte b/src/routes/[network]/(explorer)/account/[name]/+page.svelte
index b61283fec..b354be440 100644
--- a/src/routes/[network]/(explorer)/account/[name]/+page.svelte
+++ b/src/routes/[network]/(explorer)/account/[name]/+page.svelte
@@ -59,7 +59,7 @@
@@ -135,7 +135,7 @@
action={{
text: m.common_reclaim(),
href: `/${data.network}/undelegate`,
- visible: isCurrentUsers
+ visible: isCurrentUser
}}
/>
{/if}
diff --git a/src/routes/[network]/(homepage)/components/charts.svelte b/src/routes/[network]/(homepage)/components/charts.svelte
index 510e99c42..dd403d4e4 100644
--- a/src/routes/[network]/(homepage)/components/charts.svelte
+++ b/src/routes/[network]/(homepage)/components/charts.svelte
@@ -60,10 +60,10 @@
{m.homepage_staking_description({
network: network.chain.name,
- token: network.chain.systemToken?.symbol.name
+ token: String(network.chain.systemToken?.symbol.name)
})}