atproto explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

display validation errors

Juliet 5aecd0a1 fe02bcc0

+9 -2
+9 -2
src/views/record.tsx
··· 77 77 didDoc: didDocCache[res.data.uri.split("/")[2]], 78 78 }); 79 79 80 - if (errors.length > 0) console.warn(errors); 80 + if (errors.length > 0) { 81 + console.warn(errors); 82 + setNotice( 83 + `Invalid record: ${errors.map((e) => e.message).join("\n")}`, 84 + ); 85 + } 81 86 setValidRecord(errors.length === 0); 82 87 } catch (err) { 83 88 console.error(err); ··· 198 203 <div class="i-line-md-loading-twotone-loop mt-3 text-xl" /> 199 204 </Show> 200 205 <Show when={validRecord() === false}> 201 - <div class="w-20rem mb-2 mt-3 break-words">{notice()}</div> 206 + <div class="w-20rem mb-2 mt-3 break-words text-red-500 dark:text-red-400"> 207 + {notice()} 208 + </div> 202 209 </Show> 203 210 <Show when={record()}> 204 211 <div class="my-4 flex w-full justify-center gap-x-2">