add test to checkout
This commit is contained in:
@@ -41,10 +41,10 @@ export async function loader({ params, context, request }: Route.ActionArgs) {
|
||||
}
|
||||
|
||||
const { items = [] } = (await r.json()) as { items: { sk: string }[] }
|
||||
const orgs = items.map(({ sk, ...props }) => ({
|
||||
...props,
|
||||
id: sk?.split('#')[1] ?? null
|
||||
}))
|
||||
const orgs = items.map(({ sk, ...props }) => {
|
||||
const [, id] = sk?.split('#')
|
||||
return { ...props, id }
|
||||
})
|
||||
const exists = orgs.some(({ id }) => id === params.orgid)
|
||||
|
||||
if (exists) {
|
||||
|
||||
Reference in New Issue
Block a user