Skip to content

Commit

Permalink
fix: connection screen and wizard upc
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTCLTK committed Jan 19, 2024
1 parent c814f60 commit d3980a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/hosting/loading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function startSidecarConnection(id: string) {
isSidecarConnect.setValue(true);

// User wants to Disconnect
await closeSignal;
await closeSignal.promise;
connection.close();
isSidecarConnect.setValue(false);
clearInterval(watcher);
Expand Down
4 changes: 2 additions & 2 deletions spec/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const drop = zod.object({
const pageOne = zod.object({
upc: zod.string().nullish()
.transform(x => x?.trim())
.transform(x => x?.length == 0 ? undefined : x)
.refine(x => x == undefined || [ 12, 13 ].includes(x.length), { message: "Not a valid UPC" })
.transform(x => x?.length == 0 ? null : x)
.refine(x => x == null || [ 12, 13 ].includes(x.length), { message: "Not a valid UPC" })
});

const pageTwo = zod.object({
Expand Down

0 comments on commit d3980a2

Please sign in to comment.