Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
log fatal errors and minor update in pricing page
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed Dec 17, 2021
1 parent 0b3c69f commit cf52d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ app.use('/api', (req, res, next) => {
// error handler
app.use(Sentry.Handlers.errorHandler())
app.use((err: { status?: number, body?: Record<string, any> }, _: Request, res: Response, __: NextFunction) => {
console.error('FATAL:', err)
return res.status(err.status || 500).send(err.body || { error: 'Something error' })
})

Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Pricing: React.FC = () => {

const Free = () => <Card color="warning" hoverable title="FREE" style={{ fontSize: '1rem' }} actions={[<Button block type="text" size="large">Select <ArrowRightOutlined /></Button>]} onClick={() => select('free')}>
<Typography.Title style={{ textAlign: 'center', fontSize: '5em', fontWeight: 300 }}>
<Typography.Text style={{ fontSize: '0.35em' }}>$</Typography.Text>
<Typography.Text style={{ fontSize: '0.35em' }}>{isIDR ? 'Rp' : '$'}</Typography.Text>
0
</Typography.Title>
<ul style={{ textAlign: 'center', listStyleType: 'none' }}>
Expand Down

0 comments on commit cf52d5d

Please sign in to comment.