Skip to content

Commit 2e28ef1

Browse files
authored
FIX: Format (#2262)
1 parent 482f8e6 commit 2e28ef1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

launcher/src/components/UI/staking-page/StakingScreen.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,7 @@ const saveExitMessage = (data, type) => {
616616
const unwrap = (entry) => (entry && entry.data ? entry.data : entry);
617617
618618
const content =
619-
type === "single"
620-
? JSON.stringify(unwrap(data), null, 2)
621-
: data
622-
.map((entry) => JSON.stringify(unwrap(entry), null, 2))
623-
.join("\n\n");
619+
type === "single" ? JSON.stringify(unwrap(data), null, 2) : data.map((entry) => JSON.stringify(unwrap(entry), null, 2)).join("\n\n");
624620
625621
const fileName = type === "single" ? "single_exit_message.txt" : "multiple_exit_messages.txt";
626622
const blob = new Blob([content], { type: "application/json;charset=utf-8" });

0 commit comments

Comments
 (0)