FIX: Do not render no-answer nudge on mobile (#188)

This commit is contained in:
Penar Musaraj 2022-01-23 18:41:17 +01:00 committed by GitHub
parent 833070e2a1
commit fd40559798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ const ONE_WEEK = 7 * 24 * 60 * 60 * 1000; // milliseconds
const MAX_DURATION_WITH_NO_ANSWER = ONE_WEEK; const MAX_DURATION_WITH_NO_ANSWER = ONE_WEEK;
export default { export default {
shouldRender(args, component) {
return !component.site.mobileView;
},
setupComponent(args, component) { setupComponent(args, component) {
component.set("show", false); component.set("show", false);
component.setProperties({ component.setProperties({