Skip to content

Commit

Permalink
fix(ceremony): update logout printer
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 27, 2024
1 parent e09a4cd commit 2c388eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ceremony/src/lib/components/Terminal/Printer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { terminal } = getState()
content.type === "warning" ? "!text-[#FD6363]" : "",
content.type === "info" ? "!text-union-accent-500" : "",
content.uppercase ? "uppercase" : "",
)}>{content.text}</Print>
)}>{@html content.text}</Print>
{/if}
{/each}
</div>
6 changes: 3 additions & 3 deletions ceremony/src/lib/state/session.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export async function logout(terminal: Terminal): Promise<void> {
await goto("/")

if (!user.session) {
terminal.updateHistory("User already logged out", { duplicate: true })
terminal.updateHistory({ text: "User already logged out", duplicate: true })
return
}

terminal.updateHistory("Logging out user...")
terminal.updateHistory({ text: "Logging out user..." })
await sleep(1000)

try {
Expand All @@ -49,7 +49,7 @@ export async function logout(terminal: Terminal): Promise<void> {
terminal.setHash(undefined)
await invalidateAll()
} catch (error) {
terminal.updateHistory(`error logging out`)
terminal.updateHistory({ text: "Error logging out" })

terminal.setHash(undefined)
terminal.setTab(1)
Expand Down

0 comments on commit 2c388eb

Please sign in to comment.