Merge pull request #11 from Fluffy-Bean/deepsource-transform-10cecdda

style: format code with Prettier
This commit is contained in:
Michał Gdula 2024-05-06 15:49:14 +01:00 committed by GitHub
commit b2933a41c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,8 @@ import { type CartItem, type Item } from "./types";
import { getItemByUUID, postVerifyCart } from "./test-api"; import { getItemByUUID, postVerifyCart } from "./test-api";
function getLocal(): Record<string, CartItem> { function getLocal(): Record<string, CartItem> {
let localData: Record<string, CartItem> = JSON.parse(localStorage.getItem("basket")) || {}; let localData: Record<string, CartItem> =
JSON.parse(localStorage.getItem("basket")) || {};
postVerifyCart(localData) postVerifyCart(localData)
.then((data: Record<string, CartItem>) => { .then((data: Record<string, CartItem>) => {