I'd prefer it if you use `data.status` instead of hardcoding `pending` here, just in case.