File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
admin/projects/[id]/decision Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1099,7 +1099,7 @@ export default function ReviewDetailPage() {
10991099 type = "number"
11001100 value = { grantOverride }
11011101 onChange = { ( e ) => setGrantOverride ( e . target . value ) }
1102- placeholder = { `Default: ${ project . bomCost > 0 ? `BOM cost + $3 = ${ Math . ceil ( project . bomCost + 3 ) } bits` : 'No BOM cost' } ` }
1102+ placeholder = { `Default: ${ project . bomCost > 0 ? `BOM cost rounded up = ${ Math . ceil ( project . bomCost ) } bits` : 'No BOM cost' } ` }
11031103 className = "w-full px-3 py-1.5 text-sm border border-cream-500/20 bg-brown-900 text-cream-50 focus:outline-none focus:border-orange-500"
11041104 />
11051105 { grantOverride && (
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export async function POST(
6666 const bomCostTotal = totalBomCost ( project . bomItems , project . bomTax , project . bomShipping )
6767 const parsedGrantAmount = typeof grantAmount === "number" && grantAmount > 0
6868 ? grantAmount
69- : ( stage === "design" && decision === "approved" ? ( bomCostTotal > 0 ? Math . ceil ( bomCostTotal + 3 ) : null ) : null )
69+ : ( stage === "design" && decision === "approved" ? ( bomCostTotal > 0 ? Math . ceil ( bomCostTotal ) : null ) : null )
7070
7171 // tier: set at design approval to lock in the bit grant for build completion
7272 let parsedTier : number | null | undefined = undefined
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export async function POST(
186186
187187 // For design approvals, default grant to BOM cost if not explicitly overridden
188188 const bomCostTotal = totalBomCost ( project . bomItems , project . bomTax , project . bomShipping )
189- const effectiveGrant = grantOverride ?? ( stageKey === "design" ? ( bomCostTotal > 0 ? Math . ceil ( bomCostTotal + 3 ) : 0 ) : null )
189+ const effectiveGrant = grantOverride ?? ( stageKey === "design" ? ( bomCostTotal > 0 ? Math . ceil ( bomCostTotal ) : 0 ) : null )
190190
191191 // Map result to the existing decision format
192192 if ( result === "APPROVED" ) {
Original file line number Diff line number Diff line change @@ -800,7 +800,7 @@ export default function ReviewDetailPage() {
800800 type = "number"
801801 value = { grantOverride }
802802 onChange = { ( e ) => setGrantOverride ( e . target . value ) }
803- placeholder = { `Default: ${ ( data ?. submission ?. project ?. bomCost ?? 0 ) > 0 ? `BOM cost + $3 = ${ Math . ceil ( ( data ?. submission ?. project ?. bomCost ?? 0 ) + 3 ) } bits` : 'No BOM cost' } ` }
803+ placeholder = { `Default: ${ ( data ?. submission ?. project ?. bomCost ?? 0 ) > 0 ? `BOM cost rounded up = ${ Math . ceil ( data ?. submission ?. project ?. bomCost ?? 0 ) } bits` : 'No BOM cost' } ` }
804804 className = "w-full px-3 py-1.5 text-sm border border-cream-400 bg-cream-50 text-brown-800 focus:outline-none focus:border-orange-500"
805805 />
806806 { grantOverride && (
You can’t perform that action at this time.
0 commit comments