1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix a typo.

This commit is contained in:
Arunoda Susiripala 2017-04-27 13:07:01 -07:00
parent 358cfb3a29
commit fc34484e5e

View file

@ -21,9 +21,9 @@ export default function dynamicComponent (promise, options = {}) {
loadComponent () {
promise.then((AsyncComponent) => {
// Set a readable displayName for the wrapper component
const ayncCompName = AsyncComponent.displayName || AsyncComponent.name
if (ayncCompName) {
DynamicComponent.displayName = `DynamicComponent for ${ayncCompName}`
const asyncCompName = AsyncComponent.displayName || AsyncComponent.name
if (asyncCompName) {
DynamicComponent.displayName = `DynamicComponent for ${asyncCompName}`
}
if (this.mounted) {