set previous brand color in onboarding if productname not already changed

This commit is contained in:
Matthias Nannt
2023-05-03 15:36:30 +02:00
parent fe1314634a
commit 7b1edfe654

View File

@@ -37,6 +37,9 @@ const Product: React.FC<Product> = ({ done, isLoading, environmentId }) => {
} else if (product && product.name !== "My Product") {
done(); // when product already exists, skip product step entirely
} else {
if (product) {
setColor(product.brandColor);
}
setLoading(false);
}
}, [product, done, isLoadingProduct]);