We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd0c897 + 397ac96 commit 0f3c9b7Copy full SHA for 0f3c9b7
1 file changed
app/routes/matching/suggest/create/create-campaign-content.tsx
@@ -161,7 +161,7 @@ export default function CreateCampaignContent() {
161
162
const brandId = brandIdParam
163
? Number(brandIdParam)
164
- : proposalData?.brandId || 1;
+ : (type === "new" ? 0 : (proposalData?.brandId ?? 1));
165
166
const campaignId = type === "existing"
167
? (campaignIdParam ? Number(campaignIdParam) : (proposalData?.campaignId || null))
0 commit comments