jelhan/croodle

View on GitHub
app/controllers/poll-error.ts

Summary

Maintainability
A
0 mins
Test Coverage
import Controller from '@ember/controller';
import sjcl from 'sjcl';
import { NotFoundError } from '../utils/api';

export default class PollErrorController extends Controller {
  get decryptionFailed() {
    return this.model instanceof sjcl.exception.corrupt;
  }

  get notFound() {
    return this.model instanceof NotFoundError;
  }
}