task: prettier

This commit is contained in:
Zaiste
2021-05-18 14:20:07 +02:00
parent bf68f6aff7
commit 4a652a9b6a
56 changed files with 635 additions and 1480 deletions

View File

@@ -32,7 +32,7 @@ const ProductView: FC<Props> = ({ product }) => {
useEffect(() => {
// Selects the default option
const options = product.variants[0].options || [];
const options = product.variants[0].options || []
options.forEach((v) => {
setChoices((choices) => ({
...choices,
@@ -128,7 +128,8 @@ const ProductView: FC<Props> = ({ product }) => {
setChoices((choices) => {
return {
...choices,
[opt.displayName.toLowerCase()]: v.label.toLowerCase(),
[opt.displayName.toLowerCase()]:
v.label.toLowerCase(),
}
})
}}