🐛 fix: TypeScript build errors in redeem-code component
- Fix type error for accessing response.data.message with proper type assertion - Remove invalid 'loading' prop from Button component - Add conditional text rendering for loading state Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -273,7 +273,7 @@ export async function redeemCode(
|
||||
body: { code: string },
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: { message: string } }>(
|
||||
return request<API.Response & { data: { message: string } }>(
|
||||
`${import.meta.env.VITE_API_PREFIX || ""}/v1/public/redemption/`,
|
||||
{
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user